package com.components;

import java.awt.Point;
import java.io.IOException;
import java.io.InputStream;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.io.OutputStream;
import java.net.Socket;

public class Client {
	public static void main(final String[] args) {
		try {
			final Socket socket = new Socket("192.168.0.100", 8189);
			final OutputStream os = socket.getOutputStream();
			final InputStream is = socket.getInputStream();
			final ObjectOutputStream oos = new ObjectOutputStream(os);
			final ObjectInputStream ois = new ObjectInputStream(is);

			final Point p = new Point(100, 200);
			oos.writeObject(p);

		} catch (final IOException e) {
			e.printStackTrace();
		}
	}
}
